package com.fishbone.cloud.system.controller;

import com.fishbone.cloud.user.api.bo.UserBO;
import com.fishbone.cloud.user.api.feign.IUserClient;
import com.fishbone.core.api.ResponseEntity;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@AllArgsConstructor
public class TestController {

    public IUserClient userClient;

    @GetMapping("/user")
    public ResponseEntity<UserBO> getUserAuth(){
        return userClient.getUserAuth("","admin");
    }

}
